home *** CD-ROM | disk | FTP | other *** search
- Path: boy.nmd.msu.ru!not-for-mail
- From: krotoff@such.srcc.msu.su (Alexander Krotoff)
- Newsgroups: comp.lang.c++
- Subject: Operator Overloading question
- Date: 21 Jan 1996 17:38:29 +0300
- Organization: Research Computer Center, Moscow State University
- Sender: krotoff@boy.nmd.msu.ru
- Message-ID: <4dtj55$2nt@boy.nmd.msu.ru>
- References: <Robert.Lendvai-2101960120380001@129.170.80.94>
- Reply-To: krotoff@such.srcc.msu.su (Alexander Krotoff)
- NNTP-Posting-Host: boy.nmd.msu.ru
-
- X-InCommentTo: Robert.Lendvai@dartmouth.edu (Robert Lendvai)
-
- Robert.Lendvai@dartmouth.edu (Robert Lendvai) wrote:
- > Codewarrior is saying this:
- >
- > Error : illegal 'operator' declaration
- > player.h line 23 friend Boolean operator == (Player * member, char *
- > dude); //Check to see if a player has this name
- >
- > about the following code, but I have no idea why. Can anyone help?
-
- > friend Boolean operator == (Player * member, char * dude); //Check to see
- > if a //player has this name
- >
-
- As seems to me it is becouse at least one of the overloaded operator
- argumest must have the reference to class type or a class type.
- --
- Alexander
-